<?php
/**
 * Ohlasky View for Ohlasky Component
 * @license		GNU/GPL
 */

// No direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport( 'joomla.application.component.view' );

/**
 * Ohlasky View
 *
 * @package    Joomla.Tutorials
 * @subpackage Components
 */
class OhlaskysViewUdalosti_sablony extends JView
{
    /**
     * display method of Ohlasky view
     * @return void
     **/
    function display($tpl = null)
    {
        //get the udalosti sablony
        $text = '';
        $udalosti_sablony =& $this->get('Udalosti_sablony');
        if (is_object($udalosti_sablony['nalezena_sablona_obj'])) {
            $sablona_obj = $udalosti_sablony['nalezena_sablona_obj'];
            $text = $sablona_obj->nazev;
        }
        JToolBarHelper::title(   JText::_( 'Události šablony' ).': <small><small>[ '.$text.' ]</small></small>' );
        //JToolBarHelper::save();
        //JToolBarHelper::cancel();
        $this->assignRef('udalosti_sablony',	$udalosti_sablony);

        parent::display($tpl);
    }
}

